/**
 * Copyright (C) 2009+ Spark Zheng
 *
 * @file        src/mont_common.c 
 * @date        2010-05-11
 * @brief	general_network
 * @see         dserver
 * @history
 */

#include "mont_types.h"
#include "dserver_log.h"
#include "dserver_errno.h"

prot_node_t *dserver_monitor_init(const char *host, in_port_t port, uint16_t timeout)
{
	prot_node_t *monitor = NULL;

	UNUSED_PARAM(host);
	UNUSED_PARAM(port);
	UNUSED_PARAM(timeout);

	return monitor;
}

void dserver_monitor_exit(prot_node_t *monitor)
{
	UNUSED_PARAM(monitor);
	return;
}

int dserver_monitor_session_init(void *arg)
{
	dserver_conn_t *conn = (dserver_conn_t *)arg;
	prot_node_t *monitor = conn->c_prot_node;
	UNUSED_PARAM(monitor);

	return PROTOCOL_SUCCESS;
}

prot_ret_t dserver_monitor_session_worker(void *arg)
{
	dserver_conn_t *conn = (dserver_conn_t *)arg;
	prot_node_t *monitor = conn->c_prot_node;
	UNUSED_PARAM(monitor);

#ifdef DSERVER_NETWORK_NEED_DLOG
	DLOG_DEBUG(LOG_MONT, "in monitor_session_worker.");
#endif

	return PROTOCOL_CLOSE;
}

void dserver_monitor_session_exit(void *arg)
{
	dserver_conn_t *conn = (dserver_conn_t *)arg;
	prot_node_t *monitor = conn->c_prot_node;
	UNUSED_PARAM(monitor);

	return;
}

